/**
  * 配置全局设置信息
  * 包含 语言配置，等
*/

<script setup lang="ts">
import { ref } from 'vue'
import { ConfigProvider, loadSettings, defaultJsonSettings } from '@/config'

/** 全局配置ELEMENT CONFIG  */
const settings = ref<ConfigProvider>(defaultJsonSettings['el-config-provider'])
// 读取配置JSON
loadSettings().then(res => { settings.value = res['el-config-provider'] })

</script>
<!-- 模板定义 -->
<template>
  <el-config-provider :size="settings.elsize" :button="settings.button">
    <RouterView />
  </el-config-provider>
</template>